package com.example.chat.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.chat.domain.entity.Moment;
import com.example.chat.result.Result;

import java.util.List;

public interface MomentService extends IService<Moment> {

    Result addMoment(String content, List<String> imgs, Integer scope);

    Result queryPublicMoment(Long timestamp, Integer offset);

    Result likes(Long id,Integer type);

    Result comments(Long id, String text);

    Result queryPrivate(Long id,Long timestamp, Integer offset);

    Result getCommentById(Long momentId);

    Result queryUserMoment(Long id,Long momentId,Integer type);

    Result addMomentByType(String content, List<String> imgs, String file, Integer type);

    Result DeleteOrHide(Long id, Integer type);
}
